package com.xinyue.cross.server.server;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "xinyue.cross.server")
public class XinyueCrossServerConfig {
    private int port = 9090;

    private int maxFrameLength = Short.MAX_VALUE;

    private int sendBuffSize = Short.MAX_VALUE;

    private int receiveBuffSize = Short.MAX_VALUE;
    private int workThreads = 2;
}
